# Contributor: Simon Zeni <simon@bl4ckb0ne.ca>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=waypipe
pkgver=0.9.0
pkgrel=0
pkgdesc="proxy for Wayland clients"
url="https://gitlab.freedesktop.org/mstoeckl/waypipe"
arch="all !s390x" # fttfs
license="MIT"
makedepends="meson wayland-protocols wayland-dev scdoc lz4-dev zstd-dev mesa-dev
	libdrm-dev ffmpeg-dev libva-dev"
source="https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v$pkgver/waypipe-v$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson \
		-Dwerror=false \
		-Db_ndebug=true \
		build
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
07af1fd5fb05483e7efa2c11abc2eae8ccf6c46bdeb4be34821441c8f90cf1d799471dbcf040d5a35a59ca51815317b554d4255f99b8fc86b3832fec73325e2d  waypipe-v0.9.0.tar.gz
"
